package com.primaryedu.ui.center;

import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.primaryedu.R;
import com.primaryedu.ui.BaseActivity;

/**
 * 修改姓名
 *
 * @author jun.wang
 * @description
 * @data 2016年12月18日
 */
@TargetApi(23)
public class ModNameActivity extends BaseActivity implements OnClickListener {
    private TextView text_right;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_mod_name);

    }

    @Override
    protected int BindLayout() {
        return R.layout.activity_mod_name;
    }

    @Override
    protected void initView() {
        ((TextView) findViewById(R.id.title)).setText("名字");
        findViewById(R.id.back).setOnClickListener(this);
        findViewById(R.id.right).setVisibility(View.VISIBLE);
        text_right = (TextView) findViewById(R.id.text_right);
        text_right.setText("保存");
        text_right.setTextColor(getResources().getColor(R.color.main_button));
    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.back:
                finish();
                break;

            default:
                break;
        }
    }

}
